package com.bawei.service.impl;

import com.bawei.dao.OrderDao;
import com.bawei.pojo.Order;
import com.bawei.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderDao orderDao;

    @Override
    public List<Order> orderList() {
        return orderDao.orderList();
    }

    @Override
    public Order echo(Integer middleId) {
        return orderDao.echo(middleId);
    }

    @Override
    public Order getMiddleId(Integer middleId) {
        return orderDao.getMiddleId(middleId);
    }

    @Override
    public Integer updateLimitNum(Integer MiddleId) {
        return orderDao.updateLimitNum(MiddleId);
    }

    @Override
    public void updateLimitNum2(Integer middleId) {
        orderDao.updateLimitNum2(middleId);
    }
}
